package com.jg.controller;

import com.jg.entity.ProductTypes;
import com.jg.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 86130
 * @version 1.0
 * @description: TODO
 * @date 2025/6/24 下午4:10
 */
@RestController
@RequestMapping("/productType")
@CrossOrigin
public class ProductTypeController {
    @Autowired
    ProductTypeService productTypeService;

    @RequestMapping("/list")
    public List<ProductTypes> list() {
        return productTypeService.list();
    }

}
